package com.black.app.mapper.exercise;

import com.black.app.domain.exercise.AppExerciseGroup;
import com.black.app.domain.exercise.AppExerciseSeries;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.black.app.domain.req.exercise.query.AppExerciseSeriesQueryReq;
import com.black.app.domain.resp.exercise.AdminExerciseSeriesResp;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

/**
* @author L
* @description 针对表【app_exercise_series(锻炼系列)】的数据库操作Mapper
* @createDate 2024-10-23 16:57:08
* @Entity com.black.app.domain.exercise.AppExerciseSeries
*/
public interface AppExerciseSeriesMapper extends BaseMapper<AppExerciseSeries> {

    /**
     * 分页查询-后台
     * @param req
     * @return
     */
    List<AdminExerciseSeriesResp> paginationQuery(@Param("req") AppExerciseSeriesQueryReq req);

    /**
     * 根据系列id查询动作分组
     * @param sId
     * @return
     */
    Collection<AppExerciseGroup> findGroupBySid(Long sId);

    /**
     * 根据系列id查询系列信息
     * @param sId
     * @return
     */
    AdminExerciseSeriesResp findById(Long sId);
}




